﻿using System;
using System.Collections.Generic;
using DIBestPractice.Domain;

namespace DIBestPractice.Repository.Store
{
    public interface IDBStore<TAggregate> where TAggregate : AggregateRoot
    {
        TAggregate Get(Guid id);

        void Save(TAggregate aggregate);

        void Remove(Guid id);

        List<TAggregate> GetAll();
    }
}